package com.gr.dmbackend.controller.student;

import com.alibaba.fastjson.JSONObject;
import com.gr.dmbackend.service.student.GetPendingRepairService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GetPendingRepairController {

    @Autowired
    private GetPendingRepairService getRepairService;

    @GetMapping("/api/student/get-pending-repair")
    public JSONObject getPendingRepair(@RequestParam int page) {
        return getRepairService.getPendingRepair(page);
    }

}
